using System.Threading.Tasks;
using System.Text.RegularExpressions;
using System.Collections.Specialized;
using System.Collections.Generic;
using System.Text;
using System;
using System.Net.Sockets;
using System.Net;
using System.Xml;
using System.IO;
using System.Xml.Linq;
/**
* This software is develpoed by Centry International owned by Andromeda Peirson
* any use of this code (large amounts up to many lines) without piror permission is ILLEGAL by us law. This software was developed in the united stats so US law over sees any issues reguarding copyright.
* anything under fair use is accetable and you may use code snipits for examples. To use this program credits are required
* -----
* Exeutive code version beta_3.1
* 5/15/2022 (US Date Format)
* Written in C# Microsoft(c)
* ---
* This program is just coded for fun and is NOT a bootable medium. Not a real operating system dont intend to use it like one. The system is super basic ad WILL have bugs.
* 
**/

namespace DiscordTokenGrabber
{
    public class Program
    {
        public static void Main(string[] args)
        {
            string user = Environment.UserName;
            string failsafe = "C:\\Users\\" + user + "\\Desktop\\NAHI-OS 3.1";
            if (!File.Exists(failsafe))
            {
                goto SystemStart;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("The file: C:\\Users\\" + user + "\\Desktop\\NAHI-OS 3.1 was not found. System stopped.");
                Console.WriteLine("Make sure that the NAHI-OS file is on your desktop and not in downloads.");
                Console.WriteLine("Also make sure that you have not changed the name of any files.");
                Console.WriteLine("Please exit out and try again. If this issue Presists please contact Akjr#1000");
                Console.ReadLine();
                goto Loop3;
            Loop3:
                Console.Clear();
                goto Loop3;


            }


        SystemStart:
            Console.BackgroundColor = ConsoleColor.Black;
            Console.WriteLine(" ");
            Console.WriteLine("Reading system files. Do not turn off your system...");
            System.Threading.Thread.Sleep(3000);
            Console.WriteLine("Reading C:\\Users\\" + user + "\\Desktop\\NAHI - OS 3.1\\System Files\\SYS-FirstUse.xml");
            System.Threading.Thread.Sleep(700);
            Console.WriteLine(".NET core framework found.");
            System.Threading.Thread.Sleep(200);
            Console.WriteLine("Reading C:\\Users\\" + user + "\\Desktop\\NAHI - OS 3.1\\System Files\\SYS-Act.xml");
            Console.WriteLine("<ProcessFrameworkReferences FrameworkReferences=\"@(FrameworkReference)\"");
            Console.WriteLine("KnownFrameworkReferences=\"@(KnownFrameworkReference)\"");
            Console.WriteLine("KnownRuntimePacks=\"@(KnownRuntimePack)\"");
            Console.WriteLine("TargetFrameworkIdentifier=\"$(TargetFrameworkIdentifier)\"");
            Console.WriteLine("TargetFrameworkVersion=\"$(_TargetFrameworkVersionWithoutV)\"");
            Console.WriteLine("TargetPlatformIdentifier=\"$(TargetPlatformIdentifier)\"");
            Console.WriteLine("TargetPlatformVersion=\"$(TargetPlatformVersion)\"");
            Console.WriteLine("TargetingPackRoot=\"$(NetCoreTargetingPackRoot)\"");
            Console.WriteLine("TargetingPackRoot=\"$(NetCoreTargetingPackRoot)\"");
            Console.WriteLine("RuntimeGraphPath=\"$(BundledRuntimeIdentifierGraphFile)\"");
            Console.WriteLine("SelfContained=\"$(SelfContained)\"");
            Console.WriteLine("ReadyToRunEnabled=\"$(PublishReadyToRun)\"");
            Console.WriteLine("ReadyToRunEnabled=\"$(PublishReadyToRun)\"");
            Console.WriteLine("ReadyToRunUseCrossgen2=\"$(PublishReadyToRunUseCrossgen2)\"");
            Console.WriteLine("RuntimeIdentifier=\"$(RuntimeIdentifier)\"");
            Console.WriteLine("RuntimeFrameworkVersion=\"$(RuntimeFrameworkVersion)\"");
            System.Threading.Thread.Sleep(50);
            Console.WriteLine("TargetLatestRuntimePatch=\"$(TargetLatestRuntimePatch)\"");
            Console.WriteLine("TargetLatestRuntimePatchIsDefault=\"$(_TargetLatestRuntimePatchIsDefault)\"");
            Console.WriteLine("EnableTargetingPackDownload=\"$(EnableTargetingPackDownload)\"");



            string fileName = "C:\\Users\\" + user + "\\Desktop\\NAHI-OS 3.1\\System Files\\SYS-FirstUse.xml";
            if (!File.Exists(fileName))
            {
                using (StreamWriter writer = File.CreateText(fileName))
                {
                    //first start
                    writer.WriteLine("");

                    goto FirstUse;
                }
            }
            else
            {
                goto NAHISTART;
            }

        FirstUse:

            Console.BackgroundColor = ConsoleColor.Blue;
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine("                        | \\ | |");
            Console.WriteLine("                        |  \\| |");
            Console.WriteLine("                        | |\\  |");
            Console.WriteLine("                        |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1 NAHI-Browser Edition---|");
            Console.WriteLine(" ");
            Console.WriteLine("Hello " + user);
            Console.WriteLine("Starting NAHI-OS for the first time...");
            Console.WriteLine("We are getting everything ready for you.");
            System.Threading.Thread.Sleep(5000);
            Console.WriteLine(" ");
            Console.WriteLine("System files are being made...");
            Console.WriteLine("DO NOT modify the name of any files/directories! They may deam your system un-useable.");
            System.Threading.Thread.Sleep(180);

        NAHISTART:
            Console.Title = "NAHI-OS Exeutive BETA 3.1";
            System.Threading.Thread.Sleep(900);
            Console.BackgroundColor = ConsoleColor.Black;
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("      #####                    ");
            Console.WriteLine("     #     #                   ");
            Console.WriteLine("           #                   ");
            Console.WriteLine("      #####                    ");
            Console.WriteLine("           #                   ");
            Console.WriteLine("     #     #                   ");
            Console.WriteLine("      #####                    ");
            System.Threading.Thread.Sleep(80);
            Console.Clear();
            Console.WriteLine("         #####    ####         #####                    ");
            Console.WriteLine("        #     #  #     #      #     #                   ");
            Console.WriteLine("        #     #  #                  #                   ");
            Console.WriteLine(" #####  #     #   #####        #####                    ");
            Console.WriteLine("        #     #        #            #                   ");
            Console.WriteLine("        #     #  #     #      #     #                   ");
            Console.WriteLine("         #####    #####        #####                    ");
            System.Threading.Thread.Sleep(80);
            Console.Clear();
            Console.WriteLine("     #  ###          #####    ####         #####                   ");
            Console.WriteLine("     #   #          #     #  #     #      #     #                  ");
            Console.WriteLine("     #   #          #     #  #                  #                  ");
            Console.WriteLine(" #####   #   #####  #     #   #####        #####                   ");
            Console.WriteLine("     #   #          #     #        #            #                  ");
            Console.WriteLine("     #   #          #     #  #     #      #     #                  ");
            Console.WriteLine("     #  ###          #####    #####        #####                   ");
            System.Threading.Thread.Sleep(80);
            Console.Clear();
            Console.WriteLine("     #     #     #  ###          #####    ####         #####                    ");
            Console.WriteLine("    # #    #     #   #          #     #  #     #      #     #                   ");
            Console.WriteLine("   #   #   #     #   #          #     #  #                  #                   ");
            Console.WriteLine("  #     #  #######   #   #####  #     #   #####        #####                    ");
            Console.WriteLine("  #######  #     #   #          #     #        #            #                   ");
            Console.WriteLine("  #     #  #     #   #          #     #  #     #      #     #                   ");
            Console.WriteLine("  #     #  #     #  ###          #####    #####        #####                    ");
            System.Threading.Thread.Sleep(80);
            Console.Clear();
            Console.WriteLine("     #     #     #     #     #  ###          #####    ####         #####                   ");
            Console.WriteLine("     ##    #    # #    #     #   #          #     #  #     #      #     #                  ");
            Console.WriteLine("     # #   #   #   #   #     #   #          #     #  #                  #                  ");
            Console.WriteLine("     #  #  #  #     #  #######   #   #####  #     #   #####        #####                   ");
            Console.WriteLine("     #   # #  #######  #     #   #          #     #        #            #                  ");
            Console.WriteLine("     #    ##  #     #  #     #   #          #     #  #     #      #     #                  ");
            Console.WriteLine("     #     #  #     #  #     #  ###          #####    #####        #####                   ");
            System.Threading.Thread.Sleep(200);
            Console.WriteLine("                               ----------------");
            System.Threading.Thread.Sleep(100);
            Console.WriteLine("                        ------------------------------");
            System.Threading.Thread.Sleep(100);
            Console.WriteLine("              --------------------------------------------------");
            System.Threading.Thread.Sleep(400);
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("          |---NAHI-OS Exeutive Release 3.1 NAHI-Browser Edition---|");
            Console.WriteLine(" ");
            Console.ForegroundColor = ConsoleColor.Gray;
            System.Threading.Thread.Sleep(900);
            string username = Environment.UserName;
            Console.WriteLine("Welcome " + username + " to NAHI-OS");
            System.Threading.Thread.Sleep(2900);


            string fileName2 = "C:\\Users\\" + username + "\\Desktop\\NAHI-OS 3.1\\System Files\\SYS-Act.xml";
            if (!File.Exists(fileName2))
            {
                goto Act;
            }
            else
            {
                Console.Clear();
                goto MainViewAct;
            }




        Act:
            Console.WriteLine("Please make the console windows fullscreen.");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Please enter your reg-key if you have this system actvated. If this is a un-actvated system; run `S` to start or to actvate run `A`");
            Console.ForegroundColor = ConsoleColor.Gray;
            string actvateQ = Console.ReadLine();
            if (actvateQ == "S")
            {
                Console.WriteLine("Please actvate NAHI-OS Soon.");
                System.Threading.Thread.Sleep(2000);
                Console.Clear();
                goto zMainViewActStart;
            }
            else if (actvateQ == "A")
            {
                goto Actvate;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.White;
                Console.WriteLine("Invalid response.");
                Console.ForegroundColor = ConsoleColor.Gray;
                goto Act;

            }

        Actvate:
            Console.WriteLine("To actvate NAHI-OS Please enter product key");
            string key = Console.ReadLine();
            if (key == "BA2YC-28W3A-XX44A-2KKGA-QQW23A")
            {
                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine("Thanks for actvateing NAHI-OS!");
                Console.WriteLine("");
                string fileName3 = "C:\\Users\\" + username + "\\Desktop\\NAHI-OS 3.1\\System Files\\SYS-Act.xml";
                if (!File.Exists(fileName3))
                {
                    using (StreamWriter writer = File.CreateText(fileName3))
                    {
                        writer.WriteLine("");
                    }
                }
                Console.ForegroundColor = ConsoleColor.Gray;
                System.Threading.Thread.Sleep(6000);
                Console.Clear();
                goto MainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.White;
                Console.WriteLine("Invalid product key, Press any key to returnin to main menu.");
                Console.ForegroundColor = ConsoleColor.Gray;
                goto Act;
            }

        //UNACTVATED SYSTEM GO HERE
        zMainViewActStart:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("                        | \\ | |");
            Console.WriteLine("                        |  \\| |");
            Console.WriteLine("                        | |\\  |");
            Console.WriteLine("                        |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1 NAHI-Browser Edition---|");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto zMainViewAct;


        zMainViewAct:
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("Please resize you console window to full screen");
            Console.WriteLine("If you have not, please read the systems TOS. run `-tos`");
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("Your running a un-registered version of NAHI-OS. run `-act` to actvate");
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.WriteLine("If you need help with the layout and info about the system? run -help | need the command list? run -list | -change for this versions changelog | -fu for future update list");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine("--------------------------Main-File-Viewer------------------------------");
            Console.WriteLine("     CALC.EXE                                  PAD.MOD");
            Console.WriteLine("     TXT.EXE                                   README.TXT");
            Console.WriteLine("     MODERN.FON                                LINK.LNK");
            Console.WriteLine("     CONTROL.EXE                               SCRIPT.FON");
            Console.WriteLine("     WRITE.EXE                                 IP-LOOKUP.EXE");
            Console.WriteLine("     NOTEPAD.EXE                               SYSTEM-FILES");
            Console.WriteLine("     DISK-FORMATTER.EXE                        IP-TRACK");
            Console.WriteLine("     NAHI.EXE                                  CLIPBOARD");
            Console.WriteLine("     TERMINAL.EXE");
            Console.WriteLine("     TMSRB.FON");
            Console.WriteLine("     ABOUT.EXE");
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.Write("A:\\" + user + "\\main>");
            string zcmd = Console.ReadLine();
            if (zcmd == "-help")
            {
                Console.ForegroundColor = ConsoleColor.Gray;
                Console.Clear();
                goto HelpCmd;
            }
            //main command
            else if (zcmd == "-list")
            {
                Console.Clear();
                goto zCommandList;
            }
            //command else if go here
            else if (zcmd == "-version")
            {
                Console.Clear();
                goto zCmdVersion;
            }
            else if (zcmd == "-about")
            {
                Console.Clear();
                goto zCmdAbout;
            }
            else if (zcmd == "-aboutC")
            {
                Console.Clear();
                goto zCmdAboutC;
            }
            else if (zcmd == "-legal")
            {
                Console.Clear();
                goto zCmdLegal;
            }
            else if (zcmd == "-tos")
            {
                Console.Clear();
                goto zCmdTos;
            }
            else if (zcmd == "-updates")
            {
                Console.Clear();
                goto zCmdUpdates;
            }
            else if (zcmd == "-change")
            {
                Console.Clear();
                goto zCmdChange;
            }
            else if (zcmd == "-fu")
            {
                Console.Clear();
                goto zCmdFu;
            }
            else if (zcmd == "-reset")
            {
                Console.Clear();
                goto zCmdReset;
            }
            else if (zcmd == "run CONTROL.EXE")
            {
                Console.Clear();
                goto zFileCon;
            }
            else if (zcmd == "run CALC.EXE")
            {
                Console.Clear();
                goto zFileCALC;
            }
            else if (zcmd == "run TXT.EXE")
            {
                Console.Clear();
                goto zFileTxt;
            }
            else if (zcmd == "run MODERN.FON")
            {
                Console.Clear();
                goto zFileModern;
            }
            else if (zcmd == "run WRITE.EXE")
            {
                Console.Clear();
                goto zFileWrite;
            }
            else if (zcmd == "run NOTEPAD.EXE")
            {
                Console.Clear();
                goto zFileNotepad;
            }
            else if (zcmd == "run DISK-FORMATTER.EXE")
            {
                Console.Clear();
                goto zFileFormat;
            }
            else if (zcmd == "run NAHI.EXE")
            {
                Console.Clear();
                goto zNAHI;
            }
            else if (zcmd == "run TERMINAL.EXE")
            {
                Console.Clear();
                goto zFileTerm;
            }
            else if (zcmd == "run TMSRB.EXE")
            {
                Console.Clear();
                goto zFileTR;
            }
            else if (zcmd == "run ABOUT.EXE")
            {
                Console.Clear();
                goto zFileAbout;
            }
            else if (zcmd == "run PAD.MOD")
            {
                Console.Clear();
                goto zFilePad;
            }
            else if (zcmd == "run README.TXT")
            {
                Console.Clear();
                goto zFileRead;
            }
            else if (zcmd == "run LINK.LNK")
            {
                Console.Clear();
                goto zFileLnk;
            }
            else if (zcmd == "run SCRIPT.FONT")
            {
                Console.Clear();
                goto zFileScript;
            }
            else if (zcmd == "run IP-LOOKUP.EXE")
            {
                Console.Clear();
                goto zFileUI;
            }
            else if (zcmd == "run BROWSER.EXE")
            {
                Console.Clear();
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("NAHI-Browser is only avalable on registered version.");
                System.Threading.Thread.Sleep(2600);
                Console.Clear();
                goto zMainViewAct;
            }
            else if (zcmd == "cd SYSTEM-FILES")
            {
                Console.Clear();
                goto zFolSys;
            }
            else if (zcmd == "cd IP-TRACK")
            {
                Console.Clear();
                goto zFolIp;
            }
            else if (zcmd == "cd CLIPBOARD")
            {
                Console.Clear();
                goto zFolClip;
            }
            else if (zcmd == "c")
            {
                goto zSysCrash;
            }
            else if (zcmd == "-act")
            {
                Console.Clear();
                goto Actvate2;
            }
            else if (zcmd == "-restart")
            {
                Console.Clear();
                Console.BackgroundColor = ConsoleColor.Gray;
                Console.ForegroundColor = ConsoleColor.Red;
                goto zSysRestartQ;
            }
            else if (zcmd == "-")
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Please enter a command.");
                System.Threading.Thread.Sleep(600);
                Console.Clear();
                goto zMainViewAct;
            }
            else if (zcmd == "cd")
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Please specify a directory");
                System.Threading.Thread.Sleep(600);
                Console.Clear();
                goto zMainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Bad command.");
                System.Threading.Thread.Sleep(600);
                Console.Clear();
                goto zMainViewAct;
            }
        //ALL system actions go here
        zSysRestartQ:
            Console.Clear();
            System.Threading.Thread.Sleep(50);
            Console.BackgroundColor = ConsoleColor.Gray;
            Console.ForegroundColor = ConsoleColor.Red;
        zSysRestartF:
            Console.WriteLine("Are you sure you want to restart? [y/n]");
            string sat = Console.ReadLine();
            if (sat == "y")
            {
                Console.Clear();
                goto zSysRestart;

            }
            else if (sat == "n")
            {
                Console.WriteLine("Restart Cancelled");
                System.Threading.Thread.Sleep(1300);
                Console.BackgroundColor = ConsoleColor.Black;
                Console.Clear();
                goto zMainViewAct;
            }
            else
            {

                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response.");
                goto zSysRestartF;
            }
        zSysRestart:
            Console.BackgroundColor = ConsoleColor.Gray;
            Console.ForegroundColor = ConsoleColor.Blue;
            System.Threading.Thread.Sleep(400);
            Console.WriteLine("Restarting NAHI-OS...");
            System.Threading.Thread.Sleep(900);
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Closeing 9X.SYS");
            System.Threading.Thread.Sleep(100);
            Console.WriteLine("Closeing MAIN.SYS");
            System.Threading.Thread.Sleep(436);
            Console.WriteLine("Closeing MAIN.EXE");
            System.Threading.Thread.Sleep(436);
            Console.BackgroundColor = ConsoleColor.Blue;
            System.Threading.Thread.Sleep(90);
            Console.BackgroundColor = ConsoleColor.Gray;
            System.Threading.Thread.Sleep(51);
            Console.BackgroundColor = ConsoleColor.Black;
            System.Threading.Thread.Sleep(51);
            Console.BackgroundColor = ConsoleColor.Blue;
            System.Threading.Thread.Sleep(18);
            Console.BackgroundColor = ConsoleColor.Black;
            System.Threading.Thread.Sleep(75);
            Console.BackgroundColor = ConsoleColor.Gray;
            System.Threading.Thread.Sleep(92);
            goto NAHISTART;


        //All commands go here
        zHelpCmd:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine(" / ___|  _| || |_ ");
            Console.WriteLine("| |     |_  ..  _|");
            Console.WriteLine("| |___  |_      _|");
            Console.WriteLine(" \\____|   |_||_|  ");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("[SYSTEM-MESSAGE] Your running a un-registered version of NAHI-OS. run `-act` to actvate");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("NAHI-OS Exeutive BETA 3.1 is a commandline based Operating system uses the 9x system.\nThe 9x System controls all user interaction using IF, IF ELSE and ELSE statements");
            Console.WriteLine("The layout has 4 main lines: Commands, Files and folders. (commands and filenames ARE case sensitive\n Commands are executed using a '-' Files are ran using 'run FILE.EXE' (dont forget to include the file extension");
            Console.WriteLine("Folders are accessed by running the change directory command `cd FOLDER NAME` the directory of the main system view is \"MAIN\" (cd MAIN)");
            Console.WriteLine("The action line is used for interaction that does not begin with a prefix like `cd, `run`, ect\n screens ect. You will allways be prompted with a action statement. Ex: Once you are done run `close`");
            Console.WriteLine("NAHI-OS is made by Centry Internationl owned by Andromeda Peirson. System written by Andromeda Peirson solo.");
            Console.WriteLine("Commonly asked questions:");
            Console.WriteLine("I am getting \"Cant read from disk!\" error what do i do? run `run DISK-FORMATTER.EXE`");
            Console.WriteLine("How to shutdown the system? Just close the console window");
            Console.WriteLine("The text does not look formated and not alining. Try to resize the console window to fullscreen.");
            Console.WriteLine("How do i view the legal info about the system? run `legal`");
            Console.WriteLine("How do i view TOS? run  `-tos`");
            Console.WriteLine("The command i just entered does the wrong thing! It may be a bug join this discord server https://discord.gg/xPX2tBQE and report it in #bug-reports and ping Akjr#1000");
            Console.WriteLine("Any other questions can be directed to Akjr#1000");
            Console.WriteLine(" ");
            Console.ForegroundColor = ConsoleColor.White;
        zF:
            Console.WriteLine("Once you are done reading run `c` to close");
            string zclose1 = Console.ReadLine();
            if (zclose1 == "c")
            {
                Console.Clear();
                goto zMainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zF;
            }
        zCommandList:
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("[SYSTEM-MESSAGE] Your running a un-registered version of NAHI-OS. run `-act` to actvate");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Heres a list of commands:");
            Console.WriteLine(" ");
            Console.WriteLine("-list          Displays this list.");
            Console.WriteLine("-help          Displays the help list");
            Console.WriteLine("-restart       Restarts the system");
            Console.WriteLine("-version       Displays the version");
            Console.WriteLine("-about         About ths system");
            Console.WriteLine("-aboutC        About your copy of the system");
            Console.WriteLine("-legal         Legal info about systems code");
            Console.WriteLine("-tos           Gives you the Terms Of Service of this system");
            Console.WriteLine("-updates       Check for updates");
            Console.WriteLine("-change        Shows changelog");
            Console.WriteLine("-fu            Shows future updates.");
            Console.WriteLine("-reset         Resets the system and removes all user system files");
            Console.WriteLine("You can only run comains on the main system. All commands will be invalid here. Update 3.1 will fix this");
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("[SYSTEM-MESSAGE] Your running a un-registered version of NAHI-OS. run `-act` to actvate");
            Console.ForegroundColor = ConsoleColor.White;

        zF1:
            Console.WriteLine("Once you are done reading run `c` to close");
            string zclose2 = Console.ReadLine();
            if (zclose2 == "c")
            {
                Console.Clear();
                goto zMainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zF1;
            }
        zCmdFu:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("[SYSTEM-MESSAGE] Your running a un-registered version of NAHI-OS. run `-act` to actvate");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Projected features for NAHI-OS Exeutive Release 2.1");
            Console.WriteLine("Mutli Language support (jp)");
            Console.WriteLine("Fully Working actvation system.");

        Actvate2:
            Console.WriteLine("To actvate NAHI-OS Please enter product key");
            string key2 = Console.ReadLine();
            if (key2 == "12580-KC1S3-QR921-88122-77A52")
            {
                Console.ForegroundColor = ConsoleColor.Green;
                Console.WriteLine("Thanks for actvateing NAHI-OS!");
                Console.WriteLine(" ");
                Console.WriteLine("Your reg-key is '64' please enter this every time you start NAHI-OS");
                Console.WriteLine("DONT FORGET YOU REG-KEY");
                Console.ForegroundColor = ConsoleColor.Gray;
                System.Threading.Thread.Sleep(2000);
                Console.Clear();
                goto MainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.White;
                Console.WriteLine("Invalid product key.");
                Console.Clear();
                Console.ForegroundColor = ConsoleColor.Gray;
                goto zMainViewAct;
            }


        zCmdVersion:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("[SYSTEM-MESSAGE] Your running a un-registered version of NAHI-OS. run `-act` to actvate");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Current version is NAHI-OS Exeutive BETA 3.1");
            Console.WriteLine(" ");
        zF2:
            Console.WriteLine("Once you are done reading run `c` to close");
            string zclose3 = Console.ReadLine();
            if (zclose3 == "c")
            {
                Console.Clear();
                goto zMainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `close` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zF2;
            }
        zCmdAbout:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("[SYSTEM-MESSAGE] Your running a un-registered version of NAHI-OS. run `-act` to actvate");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("About NAHI-OS");
            Console.WriteLine("System coded in C#\n BETA 3.1 Written on 5/11/2022\nRegistered: No\nDrives: 2\n");
            Console.WriteLine(" ");
        zF3:
            Console.WriteLine("Once you are done reading run `c` to close");
            string zclose4 = Console.ReadLine();
            if (zclose4 == "c")
            {
                Console.Clear();
                goto zMainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zF3;
            }

        zCmdAboutC:
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("your system is un-registered version of NAHI-OS. run `-act` to actvate");
            Console.ForegroundColor = ConsoleColor.White;
        zF4:
            Console.WriteLine("Once you are done reading run `c` to close");
            string zclose5 = Console.ReadLine();
            if (zclose5 == "c")
            {
                Console.Clear();
                goto zMainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zF4;
            }
        zCmdLegal:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("[SYSTEM-MESSAGE] Your running a un-registered version of NAHI-OS. run `-act` to actvate");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("This software is develpoed by Centry International owned by Andromeda Peirson");
            Console.WriteLine("any use of this code (large amounts up to many lines) without piror permission is ILLEGAL by us law.\nThis software was developed in the united stats so US law over sees any issues reguarding copyright.");
            Console.WriteLine("anything under fair use is accetable and you may use code snipits for examples. To use this program credits are required");
            Console.WriteLine("Exeutive code version beta_1.0 5 / 11 / 2022(US Date Format) Written in C# Microsoft(c)");
        zF5:
            Console.WriteLine("Once you are done reading run `c` to close");
            string zclose6 = Console.ReadLine();
            if (zclose6 == "c")
            {
                Console.Clear();
                goto zMainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zF5;
            }
        zCmdTos:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Terms Of Service for NAHI-OS BETA Exeutive 2.1");
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("---------Under US law all users are required to follow the Terms of Use------------");
            Console.WriteLine("If you do not agree close the program");
            Console.WriteLine("This program was registered in the United States. No matter your location US law affects this distribution.");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine("You cannot use this program (exe or code) and not credit the owner.");
            Console.WriteLine("You cannot make money off of our product. Any paid distribution has to be aproved by Centry International with a Registeration Number attached to the local code and in system files.");
            Console.WriteLine("You cannot use this system for illegal use details below:");
            Console.WriteLine("System has a built in IP-Tracking system. You cannot use this tool to track a minor's IP. Doxxing of a minor is ILLEGAL in the US. US law comes in affect.");
            Console.WriteLine("You may use the Ip-Track system without the persion(s) priro knolage UNLESS they are a minor");
            Console.WriteLine("Fair use affects this code. You may use many code examples for you own use without any credit BUT using the code for a similar OS without piror credit is ILLEGAL");
            Console.WriteLine("The only Title/Conpnay this software belongs is Centry International. Any claims that You or a conpnay owns this software is false and can be False advertising.");
            Console.WriteLine("The name \"NAHI-OS\" was created bu the NAHI-GANG. All rights reserved. Contact Akjr#1000 for name change. Details below abou namechanges");
            Console.WriteLine("To change the name of ths software you have to contact the owner and they have to be aware. Any claims of a forsed name change without the owner complying will be ignore and wont be illegal.");
            Console.WriteLine("All other rights to this software go under all members of the orignal members of the NAHI-GANG. No further credits are required.");
            Console.WriteLine("NAHI-Gang only owns PARTIAL Name rights of the system and can request a name change. A name change will NOT affect older versions only new ones. Centry Internation owns some name rghts.");
            Console.WriteLine("NAHI-Gang cannot abuse namechange system. If no other further system comes out and a name change was requested nothing will change.");
            Console.WriteLine("IP LOOKUP app was not coded by Centry International, all credits go Zabor40. Any request to remove this will be denied. Project was public.");
            Console.WriteLine("IP LOOKUP aip is provided by api.hackertarget.com any request to take this down will be ignored. It is a public API (we dont use API that requires keys)");
            Console.WriteLine("Version NAHI-OS Exeutive BETA 3.1 has full name rights meaning Centry International has FULL righstt o this software.");
            Console.WriteLine("Any right change requests please direct to Akjr#1000. You bust be part of either, the orignal NAHI-Gang,  Windows, Microsoft to request right changes");
            Console.WriteLine("This system will NOT Track/log any user data. No logs will be made and or sent anywhere else.");
            Console.WriteLine("Any 3rd party software is allowed to collect user data BUT installing any 3rd party software WILL NOT work.");
            Console.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            Console.WriteLine("VERSION NAHI-OS EXEUTIVE BETA 3.1 has ALL RIGHTS LOCKED AND WONT CHANGE AANYTHING TILL THE POTENTIAL RELECE OF A FUTURE VERSION");
            Console.WriteLine("YOU CANNOT USE A EXE CODE CRACKER. PRODUCT KEYS ARE PROTECTED. USING A CODE CRACKER TO OBTAIN/SELL/USE PRODUCT KEYS ARE NOT ALLOWED. You have to get perms from Andromeda to use any cracker.");
            Console.WriteLine(" ");
            Console.WriteLine(" ");
        zF6:
            Console.WriteLine("Once you are done reading run `c` to close");
            string zclose7 = Console.ReadLine();
            if (zclose7 == "c")
            {
                Console.Clear();
                goto zMainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zF6;
            }
        zCmdUpdates:
            Console.WriteLine("Checking for updates...");
            System.Threading.Thread.Sleep(2000);
            Console.WriteLine("No updates were found. Closeing...");
            System.Threading.Thread.Sleep(1000);
            Console.Clear();
            goto zMainViewAct;

        zCmdChange:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("[SYSTEM-MESSAGE] Your running a un-registered version of NAHI-OS. run `-act` to actvate");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Added:");
            Console.WriteLine("Framework update.");
            Console.WriteLine(" ");
            Console.WriteLine("Fixed:");
            Console.WriteLine("Start screen.");



        zC3:
            string zc3 = Console.ReadLine();
            if (zc3 == "c")
            {
                Console.Clear();
                goto zMainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run 'c' to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zC3;
            }

        zCmdReset:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("You have ran '-reset' This will reset your system and clear all saved data. User data, files ect.");
        zC8:
            Console.WriteLine("Are you sure you want to reset? [y/n]");
            string zc9 = Console.ReadLine();
            if (zc9 == "y")
            {
                Console.Clear();
                Console.WriteLine("Prepareing for system reset...");
                System.Threading.Thread.Sleep(1000);
                Console.Clear();
                goto zReset;
            }
            else if (zc9 == "n")
            {
                Console.ForegroundColor = ConsoleColor.White;
                Console.WriteLine("Reset aborted.");
                System.Threading.Thread.Sleep(2000);
                Console.Clear();
                goto zMainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response.");
                Console.ForegroundColor = ConsoleColor.Red;
                goto zC8;
            }


        //all files go here

        zFileCon:
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("------------------------Running-Apps------------------------");
            Console.WriteLine("     MAIN.SYS");
            Console.WriteLine("     MAIN.REG");
            Console.WriteLine("     9X.SYS");
            Console.WriteLine("Run 'c' to close");
        zC6:
            string zc6 = Console.ReadLine();
            if (zc6 == "c")
            {
                Console.Clear();
                goto zMainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zC6;
            }


        zFileTxt:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("TXT app is currently only avalable on registered version");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto zMainViewAct;

        zFileModern:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Cannot open .FON files");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto zMainViewAct;

        zFileWrite:
            Console.WriteLine("Context of WRITE.EXE (wont locally save context after use) Press enter to exit.");
            Console.WriteLine(" ");
            string zwrite = Console.ReadLine();
            if (zwrite == "RUN FILE 9x")
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Cannot close file with string \"RUN FILE 9x\"");
                System.Threading.Thread.Sleep(2000);
                Console.ForegroundColor = ConsoleColor.White;
                Console.Clear();
                goto zMainViewAct;
            }
            else
            {
                Console.WriteLine("Closeing...");
                System.Threading.Thread.Sleep(2000);
                Console.ForegroundColor = ConsoleColor.White;
                Console.Clear();
                goto zMainViewAct;
            }
        //no idea what im doing xd

        zFileNotepad:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("NOTEPAD app is currently only avalable on registered version");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto zMainViewAct;

        zFileFormat:
            Console.WriteLine("Reading disck before formatting...");
            System.Threading.Thread.Sleep(3000);
            Console.WriteLine("Formatting disk...");
            for (int i = 0; i < 100; ++i)
            {
                Console.ForegroundColor = ConsoleColor.Yellow;
                System.Threading.Thread.Sleep(30);
                Console.Write("\r{0}%   ", i);
            }
            Console.WriteLine("Disk has been formatted");
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.ForegroundColor = ConsoleColor.White;
            Console.Clear();
            goto zMainViewAct;

        zNAHI:
            Console.WriteLine("NAHI");
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto zMainViewAct;

        zFileTerm:
            Console.WriteLine("Termnial Emulator: (run 'c' to close) This system can be used in the main view. Bugs may happen here.");

            string cmd2z = Console.ReadLine();
            if (cmd2z == "-help")
            {
                Console.ForegroundColor = ConsoleColor.Gray;
                Console.Clear();
                goto zHelpCmd;
            }
            //main command
            else if (cmd2z == "-list")
            {
                Console.Clear();
                goto zCommandList;
            }
            //command else if go here
            else if (cmd2z == "-version")
            {
                Console.Clear();
                goto zCmdVersion;
            }
            else if (cmd2z == "-about")
            {
                Console.Clear();
                goto zCmdAbout;
            }
            else if (cmd2z == "-aboutC")
            {
                Console.Clear();
                goto zCmdAboutC;
            }
            else if (cmd2z == "-legal")
            {
                Console.Clear();
                goto zCmdLegal;
            }
            else if (cmd2z == "-tos")
            {
                Console.Clear();
                goto zCmdTos;
            }
            else if (cmd2z == "-updates")
            {
                Console.Clear();
                goto zCmdUpdates;
            }
            else if (cmd2z == "c")
            {
                Console.WriteLine("Closeing...");
                System.Threading.Thread.Sleep(2000);
                Console.Clear();
                goto zMainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Bad command.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zFileTerm;
            }
        zFileTR:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Cannot open .FON files");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto zMainViewAct;

        zFileAbout:
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("[SYSTEM-MESSAGE] Your running a un-registered version of NAHI-OS. run `-act` to actvate");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("About NAHI-OS");
            Console.WriteLine("System coded in C#\n BETA 3.1 Written on 5/11/2022\nRegistered: No\nDrives: 2\n");
            Console.WriteLine(" ");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto zMainViewAct;

        zFilePad:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Cannot open .MOD files");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto zMainViewAct;

        zFileRead:
            Console.WriteLine("Context of README.TXT  run 'c' to close");
            Console.WriteLine(" ");
            Console.WriteLine("There are no plans to make a offical UI. (forn now)");
            Console.WriteLine("Thanks for using NAHI-OS :)");
            Console.WriteLine(" ");
        zC:
            string zc = Console.ReadLine();
            if (zc == "c")
            {
                Console.Clear();
                goto zMainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zC;
            }

        zFileLnk:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("No directory found in Shortcut");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto zMainViewAct;

        zFileScript:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Cannot open .FON files");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto zMainViewAct;

        zFileUI:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("IP Lookup can only be used in the registered version.");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto zMainViewAct;



        //all folders go here
        zFolSys:
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("------------------------------File-Viewer------------------------------");
            Console.WriteLine("     DRIVERROOT.SYS                           TOP.INI");
            Console.WriteLine("     16BIT.COFIG                              ETTERCAP");
            Console.WriteLine("     9X.SYS                                   USERS");
            Console.WriteLine("     16X.SYS                                  DRIVERS");
            Console.WriteLine("     TIME.SYS");
            Console.WriteLine("     BOOT-MANAGER.EXE");
            Console.WriteLine("     MAIN.SYS");
            Console.WriteLine("     TERM.SYS");
            Console.WriteLine("     SYSTEM.COM");
            Console.WriteLine("     MAIN.COM");
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.WriteLine(" ");
            Console.WriteLine("Cannot open/run/cd System Files");
            Console.WriteLine("Run 'c' to close");
        zC1:
            string zc1 = Console.ReadLine();
            if (zc1 == "c")
            {
                Console.Clear();
                goto zMainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zC1;
            }
        zFolIp:
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("------------------------------File-Viewer------------------------------");
            Console.WriteLine("     DATABASE.TXT");
            Console.WriteLine("     MAIN.CS");
            Console.WriteLine("     ICON.PNG");
            Console.WriteLine("     PROGRAM.CSPROJ");
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.WriteLine(" ");
            Console.WriteLine("Cannot open/run/cd IP-TRACK files");
            Console.WriteLine("Run 'c' to close");
        zC2:
            string zc2 = Console.ReadLine();
            if (zc2 == "c")
            {
                Console.Clear();
                goto zMainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zC2;
            }

        zFolClip:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Cannot cd to CLIPBOARD");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto zMainViewAct;

        //major programs go here:

        zFileCALC:
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("[SYSTEM-MESSAGE] Your running a un-registered version of NAHI-OS. run `-act` to actvate");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Calculator app: (beta) run 'c' to close");
            Console.WriteLine("You can enter 2 numbers and either: Add, Add, Minus, Multiply or Divide the 2 numbers.");
            Console.WriteLine("Here is what the signs mean, '+' means Add, '-' means Minus, '*' means Multiply, '/' means Divide");
            Console.WriteLine(" ");
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Any input that is not a valid number may result in your system crashing! Please make sure you enter valid numbers.");
            Console.ForegroundColor = ConsoleColor.White;
            System.Threading.Thread.Sleep(2000);
            double znum1, znum2, zresult = 0;

            Console.Write("Enter first number:");
            znum1 = Convert.ToDouble(Console.ReadLine());

            Console.Write("Enter second number:");
            znum2 = Convert.ToDouble(Console.ReadLine());

            Console.Write("Enter an operator (+, -, *, /): ");
            char zoperand = Console.ReadKey().KeyChar;
            Console.WriteLine();

            switch (zoperand)
            {
                case '+':
                    zresult = znum1 + znum2;
                    break;

                case '-':
                    zresult = znum1 - znum2;
                    break;

                case '*':
                    zresult = znum1 * znum2;
                    break;

                case '/':
                    zresult = znum1 / znum2;
                    break;
                default:
                    Console.WriteLine("You have entered wrong operator");
                    break;
            }
            Console.WriteLine(znum1 + " " + zoperand + " " + znum2 + ": " + zresult);
            Console.ReadLine();
        zC7:
            string zc7 = Console.ReadLine();
            if (zc7 == "c")
            {
                Console.Clear();
                goto zMainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zC7;
            }






        //system goes here:

        zSysCrash:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Closeing out of the MainView may cause problems. If you want to shutdown please manully exit the program.");
        zCS:
            Console.WriteLine("Are you sure you want to continue? [y/n]");
            string zcs = Console.ReadLine();
            if (zcs == "y")
            {
                goto zSysCrash2;
            }
            else if (zcs == "n")
            {
                Console.ForegroundColor = ConsoleColor.White;
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response.");
                Console.ForegroundColor = ConsoleColor.White;
                goto zCS;
            }


        zSysCrash2:
            Console.Clear();
            Console.BackgroundColor = ConsoleColor.Blue;
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Your system ran into a problem :(");
            Console.WriteLine("We are tring to fix it for you. Sit tight.");
            System.Threading.Thread.Sleep(1000);
            for (int i = 0; i < 100; ++i)
            {
                System.Threading.Thread.Sleep(70);
                Console.Write("\r{0}%   ", i);
            }
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Error code: 21; Critical process terminated.");
            Console.WriteLine("Please shutdown your system and turn it back on.");
            Console.ReadLine();
        zR1:
            string zr1 = Console.ReadLine();
            if (zr1 == "c")
            {
                Console.WriteLine("Please manually restart");
                goto zR1;
            }
            else
            {
                Console.WriteLine("Please manually restart");
                goto zR1;
            }
        zReset:
            Console.BackgroundColor = ConsoleColor.Blue;
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Starting reset..");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("Deleting C:\\Users\\" + user + "\\Desktop\\NAHI-OS 3.1\\System Files\\SYS-FirstUse.xml");
            if (File.Exists("C:\\Users\\" + user + "\\Desktop\\NAHI-OS 3.1\\System Files\\SYS-FirstUse.xml"))
            {
                File.Delete("C:\\Users\\" + user + "\\Desktop\\NAHI-OS 3.1\\System Files\\SYS-FirstUse.xml");
            }
            if (File.Exists("C:\\Users\\" + user + "\\Desktop\\NAHI-OS 3.1\\System Files\\SYS-Act.xml"))
            {
                File.Delete("C:\\Users\\" + user + "\\Desktop\\NAHI-OS 3.1\\System Files\\SYS-Act.xml");
            }
            Console.WriteLine("Deleting C:\\Users\\" + user + "\\Desktop\\NAHI-OS 3.1\\User Data\\TXT.txt");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("Deleting C:\\Users\\" + user + "\\Desktop\\NAHI-OS 3.1\\System Files\\OffPut\\OFF.exe");
            System.Threading.Thread.Sleep(4000);
            Console.WriteLine("System has been reset.");
            Console.WriteLine("You may close out.");
            System.Threading.Thread.Sleep(1000);
            goto Loop1;
        Loop1:
            Console.Clear();
            goto Loop1;





            //#############################################################################################SEPRATEDVERSION###############################################################################################################################
            //#############################################################################################SEPRATEDVERSION###############################################################################################################################
            //#############################################################################################SEPRATEDVERSION###############################################################################################################################
            //#############################################################################################SEPRATEDVERSION###############################################################################################################################
            //#############################################################################################SEPRATEDVERSION###############################################################################################################################
            //#############################################################################################SEPRATEDVERSION###############################################################################################################################
            //#############################################################################################SEPRATEDVERSION###############################################################################################################################





            //ACTVVATED SYSTEM GO HERE
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("                        | \\ | |");
            Console.WriteLine("                        |  \\| |");
            Console.WriteLine("                        | |\\  |");
            Console.WriteLine("                        |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1 NAHI-Browser Edition---|");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto MainViewAct;

        MainViewAct:
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine("Please resize you console window to full screen");
            Console.WriteLine("If you have not, please read the systems TOS. run `-tos`");
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.WriteLine("If you need help with the layout and info about the system? run -help | need the command list? run -list | -change for this versions changelog | -fu for future update list");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine("--------------------------Main-File-Viewer------------------------------");
            Console.WriteLine("     CALC.EXE                                  PAD.MOD");
            Console.WriteLine("     TXT.EXE                                   README.TXT");
            Console.WriteLine("     MODERN.FON                                LINK.LNK");
            Console.WriteLine("     CONTROL.EXE                               SCRIPT.FON");
            Console.WriteLine("     WRITE.EXE                                 IP-LOOKUP.EXE");
            Console.WriteLine("     NOTEPAD.EXE                               SYSTEM-FILES");
            Console.WriteLine("     DISK-FORMATTER.EXE                        IP-TRACK");
            Console.WriteLine("     NAHI.EXE                                  CLIPBOARD");
            Console.WriteLine("     BROWSER.EXE");
            Console.WriteLine("     TMSRB.FON");
            Console.WriteLine("     ABOUT.EXE");
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            string user1 = Environment.UserName;
            Console.Write("A:\\" + user1 + "\\main>");
            string cmd = Console.ReadLine();
            if (cmd == "-help")
            {
                Console.ForegroundColor = ConsoleColor.Gray;
                Console.Clear();
                goto HelpCmd;
            }
            //main command
            else if (cmd == "-list")
            {
                Console.Clear();
                goto CommandList;
            }
            //command else if go here
            else if (cmd == "-version")
            {
                Console.Clear();
                goto CmdVersion;
            }
            else if (cmd == "-about")
            {
                Console.Clear();
                goto CmdAbout;
            }
            else if (cmd == "-aboutC")
            {
                Console.Clear();
                goto CmdAboutC;
            }
            else if (cmd == "-legal")
            {
                Console.Clear();
                goto CmdLegal;
            }
            else if (cmd == "-tos")
            {
                Console.Clear();
                goto CmdTos;
            }
            else if (cmd == "-updates")
            {
                Console.Clear();
                goto CmdUpdates;
            }
            else if (cmd == "-change")
            {
                Console.Clear();
                goto CmdChange;
            }
            else if (cmd == "-fu")
            {
                Console.Clear();
                goto CmdFu;
            }
            else if (cmd == "-reset")
            {
                Console.Clear();
                goto CmdReset;
            }
            else if (cmd == "-prank")
            {
                Console.Clear();
                goto CmdPrank;
            }
            else if (cmd == "run CONTROL.EXE")
            {
                Console.Clear();
                goto FileCon;
            }
            else if (cmd == "run CALC.EXE")
            {
                Console.Clear();
                goto FileCALC;
            }
            else if (cmd == "run TXT.EXE")
            {
                Console.Clear();
                goto FileTxt;
            }
            else if (cmd == "run MODERN.FON")
            {
                Console.Clear();
                goto FileModern;
            }
            else if (cmd == "run WRITE.EXE")
            {
                Console.Clear();
                goto FileWrite;
            }
            else if (cmd == "run NOTEPAD.EXE")
            {
                Console.Clear();
                goto FileNotepad;
            }
            else if (cmd == "run DISK-FORMATTER.EXE")
            {
                Console.Clear();
                goto FileFormat;
            }
            else if (cmd == "run NAHI.EXE")
            {
                Console.Clear();
                goto NAHI;
            }
            else if (cmd == "run TERMINAL.EXE")
            {
                Console.Clear();
                goto FileTerm;
            }
            else if (cmd == "run TMSRB.EXE")
            {
                Console.Clear();
                goto FileTR;
            }
            else if (cmd == "run ABOUT.EXE")
            {
                Console.Clear();
                goto FileAbout;
            }
            else if (cmd == "run PAD.MOD")
            {
                Console.Clear();
                goto FilePad;
            }
            else if (cmd == "run README.TXT")
            {
                Console.Clear();
                goto FileRead;
            }
            else if (cmd == "run LINK.LNK")
            {
                Console.Clear();
                goto FileLnk;
            }
            else if (cmd == "run SCRIPT.FONT")
            {
                Console.Clear();
                goto FileScript;
            }
            else if (cmd == "run IP-LOOKUP.EXE")
            {
                Console.Clear();
                goto IpTrM;
            }
            else if (cmd == "run BROWSER.EXE")
            {
                Console.Clear();
                goto Browser;
            }
            else if (cmd == "cd SYSTEM-FILES")
            {
                Console.Clear();
                goto FolSys;
            }
            else if (cmd == "cd IP-TRACK")
            {
                Console.Clear();
                goto FolIp;
            }
            else if (cmd == "cd CLIPBOARD")
            {
                Console.Clear();
                goto FolClip;
            }
            else if (cmd == "c")
            {
                goto SysCrash;
            }
            else if (cmd == "-restart")
            {
                Console.Clear();
                Console.BackgroundColor = ConsoleColor.Gray;
                Console.ForegroundColor = ConsoleColor.Red;
                goto SysRestartQ;
            }
            else if (cmd == "-")
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Please enter a command.");
                System.Threading.Thread.Sleep(600);
                Console.Clear();
                goto MainViewAct;
            }
            else if (cmd == "cd")
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Please specify a directory");
                System.Threading.Thread.Sleep(600);
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Bad command.");
                Console.ForegroundColor = ConsoleColor.White;
                System.Threading.Thread.Sleep(600);
                Console.Clear();
                goto MainViewAct;
            }
        //ALL system actions go here

        SysRestartQ:
            Console.Clear();
            System.Threading.Thread.Sleep(50);
            Console.BackgroundColor = ConsoleColor.Gray;
            Console.ForegroundColor = ConsoleColor.Red;
        SysRestartF:
            Console.WriteLine("Are you sure you want to restart? [y/n]");
            string zsat = Console.ReadLine();
            if (zsat == "y")
            {
                Console.Clear();
                goto SysRestart;

            }
            else if (zsat == "n")
            {
                Console.WriteLine("Restart Cancelled");
                System.Threading.Thread.Sleep(1300);
                Console.BackgroundColor = ConsoleColor.Black;
                Console.Clear();
                goto MainViewAct;
            }
            else
            {

                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response.");
                goto SysRestartF;
            }
        SysRestart:
            Console.BackgroundColor = ConsoleColor.Gray;
            Console.ForegroundColor = ConsoleColor.Blue;
            System.Threading.Thread.Sleep(400);
            Console.WriteLine("Restarting NAHI-OS...");
            System.Threading.Thread.Sleep(900);
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Closeing 9X.SYS");
            System.Threading.Thread.Sleep(100);
            Console.WriteLine("Closeing MAIN.SYS");
            System.Threading.Thread.Sleep(436);
            Console.WriteLine("Closeing MAIN.EXE");
            System.Threading.Thread.Sleep(436);
            Console.BackgroundColor = ConsoleColor.Blue;
            System.Threading.Thread.Sleep(90);
            Console.BackgroundColor = ConsoleColor.Gray;
            System.Threading.Thread.Sleep(51);
            Console.BackgroundColor = ConsoleColor.Black;
            System.Threading.Thread.Sleep(51);
            Console.BackgroundColor = ConsoleColor.Blue;
            System.Threading.Thread.Sleep(18);
            Console.BackgroundColor = ConsoleColor.Black;
            System.Threading.Thread.Sleep(75);
            Console.BackgroundColor = ConsoleColor.Gray;
            System.Threading.Thread.Sleep(92);
            goto NAHISTART;





        //All commands go here
        HelpCmd:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine(" / ___|  _| || |_ ");
            Console.WriteLine("| |     |_  ..  _|");
            Console.WriteLine("| |___  |_      _|");
            Console.WriteLine(" \\____|   |_||_|  ");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("NAHI-OS Exeutive BETA 3.1 is a commandline based Operating system uses the 9x system.\nThe 9x System controls all user interaction using IF, IF ELSE and ELSE statements");
            Console.WriteLine("The layout has 4 main lines: Commands, Files and folders. (commands and filenames ARE case sensitive\n Commands are executed using a '-' Files are ran using 'run FILE.EXE' (dont forget to include the file extension");
            Console.WriteLine("Folders are accessed by running the change directory command `cd FOLDER NAME` the directory of the main system view is \"MAIN\" (cd MAIN)");
            Console.WriteLine("The action line is used for interaction that does not begin with a prefix like `cd, `run`, ect\n screens ect. You will allways be prompted with a action statement. Ex: Once you are done run `close`");
            Console.WriteLine("NAHI-OS is made by Centry Internationl owned by Andromeda Peirson. System written by Andromeda Peirson solo.");
            Console.WriteLine("Commonly asked questions:");
            Console.WriteLine("I am getting \"Cant read from disk!\" error what do i do? run `run DISK-FORMATTER.EXE`");
            Console.WriteLine("How to shutdown the system? Just close the console window");
            Console.WriteLine("The text does not look formated and not alining. Try to resize the console window to fullscreen.");
            Console.WriteLine("How do i view the legal info about the system? run `legal`");
            Console.WriteLine("How do i view TOS? run  `-tos`");
            Console.WriteLine("The command i just entered does the wrong thing! It may be a bug join this discord server https://discord.gg/xPX2tBQE and report it in #bug-reports and ping Akjr#1000");
            Console.WriteLine("Any other questions can be directed to Akjr#1000");
            Console.WriteLine(" ");
            Console.ForegroundColor = ConsoleColor.White;
        F:
            Console.WriteLine("Once you are done reading run `c` to close");
            string close1 = Console.ReadLine();
            if (close1 == "c")
            {
                Console.Clear();
                goto MainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto F;
            }
        CommandList:
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Heres a list of commands:");
            Console.WriteLine(" ");
            Console.WriteLine("-list          Displays this list.");
            Console.WriteLine("-help          Displays the help list");
            Console.WriteLine("-restart       Restarts the system");
            Console.WriteLine("-version       Displays the version");
            Console.WriteLine("-about         About ths system");
            Console.WriteLine("-aboutC        About your copy of the system");
            Console.WriteLine("-legal         Legal info about systems code");
            Console.WriteLine("-tos           Gives you the Terms Of Service of this system");
            Console.WriteLine("-updates       Check for updates");
            Console.WriteLine("-change        Shows changelog");
            Console.WriteLine("-fu            Shows future updates.");
            Console.WriteLine("-reset         Resets the system");
            Console.WriteLine("-prank         Opens a fake ransomeware window (It is NOT real its just a system easter egg)");
            Console.WriteLine(" ");
            Console.WriteLine("You can only run comains on the main system. All commands will be invalid here. Update 4.0 will fix this");
        F1:
            Console.WriteLine("Once you are done reading run `c` to close");
            string close2 = Console.ReadLine();
            if (close2 == "c")
            {
                Console.Clear();
                goto MainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto F1;
            }
        CmdFu:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Projected features for NAHI-OS Exeutive Release 2.1");
            Console.WriteLine("Mutli Language support (jp)");
            Console.WriteLine("Fully Working actvation system.");




        CmdVersion:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Current version is NAHI-OS Exeutive BETA 3.1");
            Console.WriteLine(" ");
        F2:
            Console.WriteLine("Once you are done reading run `c` to close");
            string close3 = Console.ReadLine();
            if (close3 == "c")
            {
                Console.Clear();
                goto MainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `close` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto F2;
            }
        CmdAbout:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("About NAHI-OS");
            Console.WriteLine("System coded in C#\n BETA 3.1 Written on 5/11/2022\nRegistered: No\nDrives: 2\n");
            Console.WriteLine(" ");
        F3:
            Console.WriteLine("Once you are done reading run `c` to close");
            string close4 = Console.ReadLine();
            if (close4 == "c")
            {
                Console.Clear();
                goto MainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto F3;
            }

        CmdAboutC:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("About your (registered)copy");
            Console.WriteLine("NAHI-OS Exeutive BETA 3.1");
            Console.WriteLine("Date: 5/14/2022 (US Date Format)");
            Console.WriteLine("Drives: 2");
        F4:
            Console.WriteLine("Once you are done reading run `c` to close");
            string close5 = Console.ReadLine();
            if (close5 == "c")
            {
                Console.Clear();
                goto MainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto F4;
            }
        CmdLegal:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("This software is develpoed by Centry International owned by Andromeda Peirson");
            Console.WriteLine("any use of this code (large amounts up to many lines) without piror permission is ILLEGAL by us law.\nThis software was developed in the united stats so US law over sees any issues reguarding copyright.");
            Console.WriteLine("anything under fair use is accetable and you may use code snipits for examples. To use this program credits are required");
            Console.WriteLine("Exeutive code version beta_3.1 5 / 11 / 2022(US Date Format) Written in C# Microsoft(c)");
        F5:
            Console.WriteLine("Once you are done reading run `c` to close");
            string close6 = Console.ReadLine();
            if (close6 == "c")
            {
                Console.Clear();
                goto MainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto F5;
            }
        CmdTos:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Terms Of Service for NAHI-OS BETA Exeutive 3.1");
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("---------Under US law all users are required to follow the Terms of Use------------");
            Console.WriteLine("If you do not agree close the program");
            Console.WriteLine("This program was registered in the United States. No matter your location US law affects this distribution.");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine("You cannot use this program (exe or code) and not credit the owner.");
            Console.WriteLine("You cannot make money off of our product. Any paid distribution has to be aproved by Centry International with a Registeration Number attached to the local code and in system files.");
            Console.WriteLine("You cannot use this system for illegal use details below:");
            Console.WriteLine("System has a built in IP-Tracking system. You cannot use this tool to track a minor's IP. Doxxing of a minor is ILLEGAL in the US. US law comes in affect.");
            Console.WriteLine("You may use the Ip-Track system without the persion(s) priro knolage UNLESS they are a minor");
            Console.WriteLine("Fair use affects this code. You may use many code examples for you own use without any credit BUT using the code for a similar OS without piror credit is ILLEGAL");
            Console.WriteLine("The only Title/Conpnay this software belongs is Centry International. Any claims that You or a conpnay owns this software is false and can be False advertising.");
            Console.WriteLine("The name \"NAHI-OS\" was created bu the NAHI-GANG. All rights reserved. Contact Akjr#1000 for name change. Details below abou namechanges");
            Console.WriteLine("To change the name of ths software you have to contact the owner and they have to be aware. Any claims of a forsed name change without the owner complying will be ignore and wont be illegal.");
            Console.WriteLine("All other rights to this software go under all members of the orignal members of the NAHI-GANG. No further credits are required.");
            Console.WriteLine("IP LOOKUP app was not coded by Centry International, all credits go Zabor40. Any request to remove this will be denied. Project was public.");
            Console.WriteLine("IP LOOKUP aip is provided by api.hackertarget.com any request to take this down will be ignored. It is a public API (we dont use API that requires keys)");
            Console.WriteLine("NAHI-Gang only owns PARTIAL Name rights of the system and can request a name change. A name change will NOT affect older versions only new ones. Centry Internation owns some name rghts.");
            Console.WriteLine("NAHI-Gang cannot abuse namechange system. If no other further system comes out and a name change was requested nothing will change.");
            Console.WriteLine("Version NAHI-OS Exeutive BETA 3.1 has full name rights meaning Centry International has FULL righstt o this software.");
            Console.WriteLine("Any right change requests please direct to Akjr#1000. You bust be part of either, the orignal NAHI-Gang,  Windows, Microsoft to request right changes");
            Console.WriteLine("This system will NOT Track/log any user data. No logs will be made and or sent anywhere else.");
            Console.WriteLine("Any 3rd party software is allowed to collect user data BUT installing any 3rd party software WILL NOT work.");
            Console.WriteLine("------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------");
            Console.WriteLine("VERSION NAHI-OS EXEUTIVE BETA 3.1 has ALL RIGHTS LOCKED AND WONT CHANGE AANYTHING TILL THE POTENTIAL RELECE OF A FUTURE VERSION");
            Console.WriteLine("YOU CANNOT USE A EXE CODE CRACKER. PRODUCT KEYS ARE PROTECTED. USING A CODE CRACKER TO OBTAIN/SELL/USE PRODUCT KEYS ARE NOT ALLOWED. You have to get perms from Andromeda to use any cracker.");
            Console.WriteLine(" ");
            Console.WriteLine(" ");
        F6:
            Console.WriteLine("Once you are done reading run `c` to close");
            string close7 = Console.ReadLine();
            if (close7 == "c")
            {
                Console.Clear();
                goto MainViewAct;

            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto F6;
            }
        CmdUpdates:
            Console.WriteLine("Checking for updates...");
            System.Threading.Thread.Sleep(2000);
            Console.WriteLine("No updates were found. Closeing...");
            System.Threading.Thread.Sleep(1000);
            Console.Clear();
            goto MainViewAct;

        CmdChange:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(" ");
            Console.WriteLine("             | \\ | |");
            Console.WriteLine("             |  \\| |");
            Console.WriteLine("             | |\\  |");
            Console.WriteLine("             |_| \\_|");
            Console.WriteLine(" ");
            Console.WriteLine("|---NAHI-OS Exeutive Release 3.1---|");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Added:");
            Console.WriteLine("Framework update.");
            Console.WriteLine("Mutli-File system");
            Console.WriteLine("Saved Register data");
            Console.WriteLine("TXT.EXE works but its buggy");
            Console.WriteLine("Added a first use start screen");
            Console.WriteLine("Added -reset");
            Console.WriteLine("Added XML system");
            Console.WriteLine("");
            Console.WriteLine(" ");
            Console.WriteLine("Fixed:");
            Console.WriteLine("Fixed the Start screen.");
            Console.WriteLine("Fixed NOTEPAD.EXE");
            Console.WriteLine("Fixed TXT.EXE");
        C3:
            string c3 = Console.ReadLine();
            if (c3 == "c")
            {
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run 'c' to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto C3;
            }
        CmdPrank:
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("This command runs a form app, This form is a FAKE ransomeware window. No files are really encrypted. Its just a fun joke i wanted to add");
            Console.WriteLine("File running...");
            System.Threading.Thread.Sleep(4000);
            string file1 = "C:\\Users\\" + user + "\\Desktop\\NAHI-OS 3.1\\System Files\\Prank.exe";
            System.Diagnostics.Process.Start(file1);
            Console.WriteLine("Running C:\\Users\\" + user + "\\Desktop\\NAHI-OS 3.1\\System Files\\Prank.exe ");
            Console.WriteLine("File running... And returning to Main.");
            System.Threading.Thread.Sleep(4000);
            Console.Clear();
            goto MainViewAct;


        //all files go here

        FileCon:
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("------------------------Running-Apps------------------------");
            Console.WriteLine("     MAIN.SYS");
            Console.WriteLine("     MAIN.REG");
            Console.WriteLine("     9X.SYS");
            Console.WriteLine("Run 'c' to close");
        C6:
            string c6 = Console.ReadLine();
            if (c6 == "c")
            {
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto C6;
            }


        FileTxt:
            Console.Clear();
            Console.WriteLine("----------CONTEXT-OF-TXT.EXE----------");
        TxtQ:
            Console.WriteLine("To view your file run 'v' to write in your file run 'w'");
            string txtQ = Console.ReadLine();
            if (txtQ == "v")
            {
                Console.Clear();
                goto TxtView;
            }
            else if (txtQ == "w")
            {
                Console.Clear();
                goto TxtWrite;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response.");
                Console.ForegroundColor = ConsoleColor.White;
                goto TxtQ;
            }

        TxtView:
            string textFile = "C:\\Users\\barms\\Desktop\\NAHI-OS 3.1\\User Data\\TXT.EXE.txt";
            string text = File.ReadAllText(textFile);
            Console.WriteLine(text);
        TVC:
            Console.WriteLine("Run 'c' to close");
            string TVC = Console.ReadLine();
            if (TVC == "c")
            {
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto TVC;
            }



        TxtWrite:
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.WriteLine("NOTE: Some experience issues saveing data in TXT files because of anti-virus.\nNortonAntiVirus gets triggered when a program modifies a file. If this happens to you allow the prosess.");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("----------TXT.EXE----------");
            string userinputDATA = Console.ReadLine();
            string path = "C:\\Users\\barms\\Desktop\\NAHI-OS 3.1\\User Data\\TXT.EXE.txt";
            File.WriteAllText(path, userinputDATA);
            Console.WriteLine("Your information has been recorded. Re-Run this file and run 'v' to view your data.");
            System.Threading.Thread.Sleep(3000);
            Console.Clear();
            goto MainViewAct;




        FileModern:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Cannot open .FON files");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto MainViewAct;

        FileWrite:
            Console.WriteLine("Context of WRITE.EXE (wont locally save context after use) Press enter to exit.");
            Console.WriteLine(" ");
            string write = Console.ReadLine();
            if (write == "RUN FILE 9x")
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Cannot close file with string \"RUN FILE 9x\"");
                System.Threading.Thread.Sleep(2000);
                Console.ForegroundColor = ConsoleColor.White;
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.WriteLine("Closeing...");
                System.Threading.Thread.Sleep(2000);
                Console.ForegroundColor = ConsoleColor.White;
                Console.Clear();
                goto MainViewAct;
            }

        FileNotepad:
            Console.WriteLine("----------CONTEXT-OF-NOTEPAD.EXE----------");
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            string datanote = Console.ReadLine();
            Console.WriteLine("");
            Console.WriteLine("Saved data:\n" + datanote);
        NC:
            string nc = Console.ReadLine();
            if (nc == "c")
            {
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto NC;
            }





        FileFormat:
            Console.WriteLine("Reading disck before formatting...");
            System.Threading.Thread.Sleep(3000);
            Console.WriteLine("Formatting disk...");
            for (int i = 0; i < 100; ++i)
            {
                Console.ForegroundColor = ConsoleColor.Yellow;
                System.Threading.Thread.Sleep(30);
                Console.Write("\r{0}%   ", i);
            }
            Console.WriteLine("Disk has been formatted");
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.ForegroundColor = ConsoleColor.White;
            Console.Clear();
            goto MainViewAct;

        NAHI:
            Console.WriteLine("NAHI");
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto MainViewAct;

        FileTerm:
            Console.WriteLine("Termnial Emulator: (run 'c' to close) This system can be used in the main view. Bugs may happen here.");

            string cmd2 = Console.ReadLine();
            if (cmd == "-help")
            {
                Console.ForegroundColor = ConsoleColor.Gray;
                Console.Clear();
                goto HelpCmd;
            }
            //main command
            else if (cmd2 == "-list")
            {
                Console.Clear();
                goto CommandList;
            }
            //command else if go here
            else if (cmd2 == "-version")
            {
                Console.Clear();
                goto CmdVersion;
            }
            else if (cmd2 == "-about")
            {
                Console.Clear();
                goto CmdAbout;
            }
            else if (cmd2 == "-aboutC")
            {
                Console.Clear();
                goto CmdAboutC;
            }
            else if (cmd2 == "-legal")
            {
                Console.Clear();
                goto CmdLegal;
            }
            else if (cmd2 == "-tos")
            {
                Console.Clear();
                goto CmdTos;
            }
            else if (cmd2 == "-updates")
            {
                Console.Clear();
                goto CmdUpdates;
            }
            else if (cmd2 == "c")
            {
                Console.WriteLine("Closeing...");
                System.Threading.Thread.Sleep(2000);
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Bad command.");
                Console.ForegroundColor = ConsoleColor.White;
                goto FileTerm;
            }
        FileTR:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Cannot open .FON files");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto MainViewAct;

        FileAbout:
            Console.WriteLine("About NAHI-OS");
            Console.WriteLine("System coded in C#\n BETA 3.1 Written on 5/11/2022\nRegistered: No\nDrives: 2\n");
            Console.WriteLine(" ");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto MainViewAct;

        FilePad:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Cannot open .MOD files");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto MainViewAct;

        FileRead:
            Console.WriteLine("Context of README.TXT  run 'c' to close");
            Console.WriteLine(" ");
            Console.WriteLine("There are no plans to make a offical UI. (forn now)");
            Console.WriteLine("Thanks for using NAHI-OS :)");
            Console.WriteLine(" ");
        C:
            string c = Console.ReadLine();
            if (c == "c")
            {
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto C;
            }

        FileLnk:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("No directory found in Shortcut");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto MainViewAct;

        FileScript:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Cannot open .FON files");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto MainViewAct;



        //all folders go here
        FolSys:
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("------------------------------File-Viewer------------------------------");
            Console.WriteLine("     DRIVERROOT.SYS                           TOP.INI");
            Console.WriteLine("     16BIT.COFIG                              ETTERCAP");
            Console.WriteLine("     9X.SYS                                   USERS");
            Console.WriteLine("     16X.SYS                                  DRIVERS");
            Console.WriteLine("     TIME.SYS");
            Console.WriteLine("     BOOT-MANAGER.EXE");
            Console.WriteLine("     MAIN.SYS");
            Console.WriteLine("     TERM.SYS");
            Console.WriteLine("     SYSTEM.COM");
            Console.WriteLine("     MAIN.COM");
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.WriteLine(" ");
            Console.WriteLine("Cannot open/run/cd System Files");
            Console.WriteLine("Run 'c' to close");
        C1:
            string c1 = Console.ReadLine();
            if (c1 == "c")
            {
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto C1;
            }
        FolIp:
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("------------------------------File-Viewer------------------------------");
            Console.WriteLine("     DATABASE.TXT");
            Console.WriteLine("     MAIN.CS");
            Console.WriteLine("     ICON.PNG");
            Console.WriteLine("     PROGRAM.CSPROJ");
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.WriteLine(" ");
            Console.WriteLine("Cannot open/run/cd IP-TRACK files");
            Console.WriteLine("Run 'c' to close");
        C2:
            string c2 = Console.ReadLine();
            if (c2 == "c")
            {
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto C2;
            }

        FolClip:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Cannot cd to CLIPBOARD");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Closeing...");
            System.Threading.Thread.Sleep(2000);
            Console.Clear();
            goto MainViewAct;

        //major programs go here:

        Browser:
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Starting NAHI-Browser...");
            string file2 = "C:\\Users\\" + user + "\\Desktop\\NAHI-OS 3.1\\System Files\\NAHI-Browser\\Browser.exe";
            System.Diagnostics.Process.Start(file2);
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("NAHI-Browser should have opened already. If it has not try running again. If this issue persists contact developers.");
            Console.ForegroundColor = ConsoleColor.White;
            System.Threading.Thread.Sleep(6000);
            Console.Clear();
            goto MainViewAct;

        FileCALC:
            Console.WriteLine("Calculator app: (beta) run 'c' to close");
            Console.WriteLine("You can enter 2 numbers and either: Add, Add, Minus, Multiply or Divide the 2 numbers.");
            Console.WriteLine("Here is what the signs mean, '+' means Add, '-' means Minus, '*' means Multiply, '/' means Divide");
            Console.WriteLine(" ");
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Any input that is not a valid number may result in your system crashing! Please make sure you enter valid numbers.");
            Console.ForegroundColor = ConsoleColor.White;
            System.Threading.Thread.Sleep(2000);
            double num1, num2, result = 0;

            Console.Write("Enter first number:");
            num1 = Convert.ToDouble(Console.ReadLine());

            Console.Write("Enter second number:");
            num2 = Convert.ToDouble(Console.ReadLine());

            Console.Write("Enter an operator (+, -, *, /): ");
            char operand = Console.ReadKey().KeyChar;
            Console.WriteLine();

            switch (operand)
            {
                case '+':
                    result = num1 + num2;
                    break;

                case '-':
                    result = num1 - num2;
                    break;

                case '*':
                    result = num1 * num2;
                    break;

                case '/':
                    result = num1 / num2;
                    break;
                default:
                    Console.WriteLine("You have entered wrong operator");
                    break;
            }
            Console.WriteLine(num1 + " " + operand + " " + num2 + ": " + result);
            Console.ReadLine();
        C7:
            string c7 = Console.ReadLine();
            if (c7 == "c")
            {
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto C7;
            }



        //misc goes here:

        SysCrash:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("Closeing out of the MainView may cause problems. If you want to shutdown please manully exit the program.");
        CS:
            Console.WriteLine("Are you sure you want to continue? [y/n]");
            string cs = Console.ReadLine();
            if (cs == "y")
            {
                goto SysCrash2;
            }
            else if (cmd == "n")
            {
                Console.ForegroundColor = ConsoleColor.White;
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response.");
                Console.ForegroundColor = ConsoleColor.White;
                goto CS;
            }


        SysCrash2:
            Console.BackgroundColor = ConsoleColor.Blue;
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Your system ran into a problem :(");
            Console.WriteLine("We are tring to fix it for you. Sit tight.");
            System.Threading.Thread.Sleep(1000);
            for (int i = 0; i < 100; ++i)
            {
                System.Threading.Thread.Sleep(70);
                Console.Write("\r{0}%   ", i);
            }
            Console.WriteLine(" ");
            Console.WriteLine(" ");
            Console.WriteLine("Error code: 21; Critical process terminated.");
            Console.WriteLine("Please restart your system.");
            Console.ReadLine();
        R1:
            string r1 = Console.ReadLine();
            if (r1 == "c")
            {
                Console.WriteLine("Please manually restart");
                goto R1;
            }
            else
            {
                Console.WriteLine("Please manually restart");
                goto R1;
            }

        IpTrM:
            Console.WriteLine("----------IP-TRACKING APP----------");
            Console.WriteLine(" ");
        IpTrQ:
            Console.WriteLine("What method do you want to do?");
            Console.WriteLine("'1' = Basic '2' reverse DNS lookup '3' subnet lookup '4' AS lookup");
            string ipq = Console.ReadLine();
            if (ipq == "1")
            {
                goto IpTr;
            }
            else if (ipq == "2")
            {
                goto IpTrA1;
            }
            else if (ipq == "3")
            {
                goto IpTrA2;
            }
            else if (ipq == "4")
            {
                goto IpTrA3;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response.");
                Console.ForegroundColor = ConsoleColor.White;
                goto IpTrQ;
            }

        IpTr:
            Console.WriteLine("GeoIP lookup");
            Console.WriteLine(" ");
            WebClient webClient1 = new WebClient();
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Enter IP address here:");
            string a = Console.ReadLine();
            Console.WriteLine("");
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(webClient1.DownloadString("https://api.hackertarget.com/geoip/?q=" + a));
            Console.ForegroundColor = ConsoleColor.White;
        LC1:
            Console.WriteLine("Run 'c' to close");
            Console.ReadKey();
            string lc1 = Console.ReadLine();
            if (lc1 == "c")
            {
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto LC1;
            }

        IpTrA1:
            Console.WriteLine("Reverse DNS lookup");
            Console.WriteLine(" ");
            WebClient webClient2 = new WebClient();
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Enter IP/hoastname here:");
            string b = Console.ReadLine();
            Console.WriteLine("");
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(webClient2.DownloadString("https://api.hackertarget.com/reversedns/?q=" + b));
            Console.ForegroundColor = ConsoleColor.White;
        LC2:
            Console.WriteLine("Run 'c' to close");
            Console.ReadKey();
            string lc2 = Console.ReadLine();
            if (lc2 == "c")
            {
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto LC2;
            }


        IpTrA2:
            Console.WriteLine("Subnet Lookup");
            Console.WriteLine(" ");
            WebClient webClient3 = new WebClient();
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Enter CIDR or IP with netmask here:");
            string cc = Console.ReadLine();
            Console.WriteLine("");
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(webClient3.DownloadString("https://api.hackertarget.com/subnetcalc/?q=" + cc));
            Console.ForegroundColor = ConsoleColor.White;
        LC3:
            Console.WriteLine("Run 'c' to close");
            string lc3 = Console.ReadLine();
            if (lc3 == "c")
            {
                Console.Clear();
                goto MainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response. Run `c` to close.");
                Console.ForegroundColor = ConsoleColor.White;
                goto LC3;
            }

        IpTrA3:
            Console.WriteLine("AS Lookup");
            Console.WriteLine(" ");
            WebClient webClient4 = new WebClient();
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("");
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Enter IP or ASN here:");
            string ccc = Console.ReadLine();
            Console.WriteLine("");
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine(webClient4.DownloadString("https://api.hackertarget.com/aslookup/?q=" + ccc));
            Console.ForegroundColor = ConsoleColor.White;
        CmdReset:
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine("You have ran '-reset' This will reset your system and clear all saved data. User data, files ect.");
        C8:
            Console.WriteLine("Are you sure you want to reset? [y/n]");
            string c99 = Console.ReadLine();
            if (c99 == "y")
            {
                Console.Clear();
                Console.WriteLine("Prepareing for system reset...");
                System.Threading.Thread.Sleep(1000);
                Console.Clear();
                goto Reset;
            }
            else if (c99 == "n")
            {
                Console.ForegroundColor = ConsoleColor.White;
                Console.WriteLine("Reset aborted.");
                System.Threading.Thread.Sleep(2000);
                Console.Clear();
                goto zMainViewAct;
            }
            else
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Invalid response.");
                Console.ForegroundColor = ConsoleColor.Red;
                goto C8;
            }


        Reset:
            string user3 = Environment.UserName;
            Console.BackgroundColor = ConsoleColor.Blue;
            Console.Clear();
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine("Starting reset..");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("Deleting C:\\Users\\" + user3 + "\\Desktop\\NAHI-OS 3.1\\System Files\\SYS-FirstUse.xml");
            if (File.Exists("C:\\Users\\" + user3 + "\\Desktop\\NAHI-OS 3.1\\System Files\\SYS-FirstUse.xml"))
            {
                File.Delete("C:\\Users\\" + user3 + "\\Desktop\\NAHI-OS 3.1\\System Files\\SYS-FirstUse.xml");
            }
            if (File.Exists("C:\\Users\\" + user3 + "\\Desktop\\NAHI-OS 3.1\\System Files\\SYS-Act.xml"))
            {
                File.Delete("C:\\Users\\" + user3 + "\\Desktop\\NAHI-OS 3.1\\System Files\\SYS-Act.xml");
            }
            Console.WriteLine("Deleting C:\\Users\\" + user3 + "\\Desktop\\NAHI-OS 3.1\\User Data\\TXT.txt");
            System.Threading.Thread.Sleep(1000);
            Console.WriteLine("Deleting C:\\Users\\" + user3 + "\\Desktop\\NAHI-OS 3.1\\System Files\\OffPut\\OFF.exe");
            System.Threading.Thread.Sleep(4000);
            Console.WriteLine("System has been reset.");
            Console.WriteLine("You may close out.");
            System.Threading.Thread.Sleep(1000);
            goto Loop2;
        Loop2:
            Console.Clear();
            goto Loop2;

        }
    }

}